<div *ngIf="fileUrl"
  class="custom-image-main"
  [ngClass]="{'ng-fullimage-loading': imageLoading}">
  <img class="image"
    (load)="imageLoading = false"
    [ngClass]="{'ratio': ratio}"
    [src]="fileUrl">
</div>